package com.LittleHan.crm.workbench.service;

import com.LittleHan.crm.exception.*;
import com.LittleHan.crm.vo.PaginationVo;
import com.LittleHan.crm.workbench.entity.*;

import java.util.List;
import java.util.Map;

public interface ClueService {
    public int clueSave(Clue clue) throws ClueInsertException;
    public PaginationVo<Clue> getTotalAndClueList(String fullname, String company, String phone, String source,
                                                  String owner, String mphone, String state, int pageNo, int pageSize);
    public Clue clueGet(String id);
    public int clueUpdate(Clue clue) throws ClueUpdateException;
    public int clueDel(String []id);
    public Clue getClueToInf(String id);
    public List<ClueRemark> getClueRemarkList(String id);
    public int clueRemarkAdd(ClueRemark clueRemark) throws ClueRemarkAddException;
    public int clueRemarkDel(String id) throws ClueRemarkDelException;
    public int clueRemarkUpd(ClueRemark clueRemark) throws ClueRemarkUpdException;
    public List<Map<String,Object>> clueRemarkActivity(String clueId);
    public  int clueRemarkActivityRemove(String id) throws ClueRemarkActivityRemoveException;
    public List<Activity> clueRemarkActivitySearch(String name,String clueId);
    public List<ClueActivityRelation> clueRemarkRel(String []activityId, String clueId) throws ClueRemarkRelevancyException;
    public List<Activity> convertActivityGet(String name);
    public String makeTransform(Tran tran,String clueId,String createBy);
}
